home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / EmailViewer / EmailViewer.jar / l.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-10-08  |  4.6 KB  |  145 lines

  1. import javax.microedition.lcdui.Alert;
  2. import javax.microedition.lcdui.AlertType;
  3. import javax.microedition.lcdui.Command;
  4. import javax.microedition.lcdui.CommandListener;
  5. import javax.microedition.lcdui.Displayable;
  6. import javax.microedition.lcdui.Form;
  7. import javax.microedition.lcdui.Image;
  8. import javax.microedition.lcdui.List;
  9. import javax.microedition.lcdui.TextBox;
  10.  
  11. // $FF: renamed from: l
  12. public class class_0 implements CommandListener {
  13.    // $FF: renamed from: new ab
  14.    private ab field_0;
  15.    // $FF: renamed from: int ab
  16.    private ab field_1;
  17.    // $FF: renamed from: else ab
  18.    private ab field_2;
  19.    // $FF: renamed from: case ab
  20.    private ab field_3;
  21.    // $FF: renamed from: try javax.microedition.lcdui.TextBox
  22.    private TextBox field_4;
  23.    // $FF: renamed from: if javax.microedition.lcdui.TextBox
  24.    private TextBox field_5;
  25.    // $FF: renamed from: a javax.microedition.lcdui.Form
  26.    private Form field_6;
  27.    // $FF: renamed from: do b
  28.    private b field_7;
  29.    // $FF: renamed from: for javax.microedition.lcdui.Displayable
  30.    private Displayable field_8;
  31.    // $FF: renamed from: byte b
  32.    private b field_9;
  33.    // $FF: renamed from: char javax.microedition.lcdui.List
  34.    private List field_10;
  35.  
  36.    class_0(List var1, b var2, Displayable var3) {
  37.       this.field_10 = var1;
  38.       this.field_8 = var3;
  39.       if (var2 == null) {
  40.          var2 = new b();
  41.       }
  42.  
  43.       this.field_7 = var2;
  44.       this.field_4 = new TextBox("Subject", this.field_7.if(), 1024, 0);
  45.       this.field_4.addCommand(EmailViewer.null);
  46.       this.field_4.addCommand(EmailViewer.new);
  47.       this.field_4.setCommandListener(this);
  48.       this.field_5 = new TextBox("Message Text", this.field_7.do(), 1024, 0);
  49.       this.field_5.setCommandListener(this);
  50.       this.field_5.addCommand(EmailViewer.i);
  51.       this.field_5.addCommand(EmailViewer.new);
  52.       this.field_0 = new ab(true, "From", this, var3, (t[])null);
  53.       if (this.field_0.void.size() == 1) {
  54.          this.field_1 = new ab(false, "To", this, var3, this.field_7.a());
  55.       }
  56.  
  57.    }
  58.  
  59.    public void commandAction(Command var1, Displayable var2) {
  60.       if (var1 == EmailViewer.m) {
  61.          EmailViewer.do.setCurrent(this.field_10);
  62.       } else if (var1 == EmailViewer.c) {
  63.          this.field_6 = new Form("Result");
  64.          this.field_6.setCommandListener(this);
  65.          this.field_6.addCommand(EmailViewer.m);
  66.          this.field_6.addCommand(EmailViewer.new);
  67.          String var3 = EmailViewer.if.for();
  68.          if (var3 == null) {
  69.             var3 = "This email message may not have been delivered due to an unexpected error.";
  70.          } else if (var3.equals("confirmed")) {
  71.             var3 = "Before this message can be delivered, we must confirm that your email address is valid. We have sent a confirmation message to " + this.field_9.new().if() + ". Please see this confirmation message for details.";
  72.          } else if (var3.equals("sent")) {
  73.             String var4 = this.field_9.if();
  74.             if (var4 == null) {
  75.                var4 = "";
  76.             }
  77.  
  78.             var3 = "Your message, '" + var4 + "', has been sent.";
  79.          } else {
  80.             var3 = "Unknown status of sent message.";
  81.          }
  82.  
  83.          this.field_6.append(var3);
  84.          EmailViewer.do.setCurrent(this.field_6);
  85.       } else if (var1 == EmailViewer.goto) {
  86.          if (var2 == this.field_0.void) {
  87.             this.field_0 = new ab(true, "From", this, this.field_10, (t[])null);
  88.             if (this.field_0.void.size() == 1) {
  89.                this.field_1 = new ab(false, "To", this, this.field_8, this.field_7.a());
  90.             }
  91.          } else if (var2 == this.field_1.void) {
  92.             Object var6;
  93.             if (this.field_0.void.size() == 1) {
  94.                var6 = this.field_8;
  95.             } else {
  96.                var6 = this.field_0.void;
  97.             }
  98.  
  99.             this.field_1 = new ab(false, "To", this, (Displayable)var6, this.field_1.new());
  100.          } else if (var2 == this.field_2.void) {
  101.             this.field_2 = new ab(false, "Cc", this, this.field_1.void, this.field_2.new());
  102.          } else if (var2 == this.field_3.void) {
  103.             this.field_3 = new ab(false, "Bcc", this, this.field_2.void, this.field_3.new());
  104.          }
  105.       } else if (var1 == EmailViewer.new) {
  106.          if (var2 == this.field_4) {
  107.             EmailViewer.do.setCurrent(this.field_3.void);
  108.          } else if (var2 == this.field_5) {
  109.             EmailViewer.do.setCurrent(this.field_4);
  110.          } else if (var2 == this.field_6) {
  111.             EmailViewer.do.setCurrent(this.field_5);
  112.          } else {
  113.             EmailViewer.do.setCurrent(this.field_8);
  114.          }
  115.       } else if (var1 == this.field_0.long) {
  116.          this.field_1 = new ab(false, "To", this, this.field_0.void, this.field_7.a());
  117.       } else if (var1 == this.field_1.long) {
  118.          if (this.field_1.new() == null) {
  119.             EmailViewer.do.setCurrent(new Alert("Error", "At least one 'To:' recipient required", (Image)null, AlertType.ERROR));
  120.          } else {
  121.             this.field_2 = new ab(false, "Cc", this, this.field_1.void, this.field_7.try());
  122.          }
  123.       } else if (var1 == this.field_2.long) {
  124.          this.field_3 = new ab(false, "Bcc", this, this.field_2.void, (t[])null);
  125.       } else if (var1 == this.field_3.long) {
  126.          EmailViewer.do.setCurrent(this.field_4);
  127.       } else if (var1 == EmailViewer.null) {
  128.          EmailViewer.do.setCurrent(this.field_5);
  129.       } else if (var1 == EmailViewer.i) {
  130.          this.field_9 = new b();
  131.          this.field_9.do(this.field_4.getString());
  132.          this.field_9.do(this.field_1.new());
  133.          this.field_9.if(this.field_2.new());
  134.          this.field_9.a(this.field_3.new());
  135.          this.field_0.try();
  136.          this.field_9.a(new t(this.field_0.goto, this.field_0.do));
  137.          this.field_9.if(this.field_5.getString());
  138.          EmailViewer.if.W = this;
  139.          EmailViewer.do.setCurrent(EmailViewer.if);
  140.          EmailViewer.if.a(this.field_9);
  141.       }
  142.  
  143.    }
  144. }
  145.